<template>
    <bList :instance="pList" @about="pList.info"></bList>
</template>

<script setup lang="ts">
import { NurseLeaderHistoryList } from "@b/index/nursing_appointment";
import bList from "@m/components/public/b_list.vue";
import { useRouter } from "vue-router";
/* import-and-register */

const pList = new NurseLeaderHistoryList();
const router = useRouter();
/* const-and-register */

pList.info = async (id: number) => {
    if (!id) return;
    router.push(`/nursing_appointment/info/history?id=${id}`)
};
/* event-and-register */
</script>